﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RStein.PosterousReader.WP.ViewModels.ViewObjects;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using System.ComponentModel;

namespace RStein.PosterousReader.WP.ViewModels.ViewObjects
{
  [DataContract]
  public class SiteVO : ViewObjectBase
  {
    private ObservableCollection<PostVO> m_posts;
    private string m_name;
    public SiteVO()
    {

      Name = String.Empty;
      m_posts = new ObservableCollection<PostVO>();
    }



    [DataMember]
    public ObservableCollection<PostVO> Posts
    {
      get
      {
        return m_posts;
      }
      set
      {
        m_posts = value;
        RaisePropertyChangedEvent(() => Posts);
      }
    }

    [DataMember]
    public string Name
    {
      get
      {
        return m_name;
      }
      set
      {
        m_name = value;
        RaisePropertyChangedEvent(() => Name);
      }
    }

  }
}
